package _6同步问题;



public class TestDemo {

	public static void main(String[] args) {
		
		
		// 3个售票员 每个人一起卖100张票
				
//		SellerRunnable r = new SellerRunnable();
		
//		SellerRunnable2 r = new SellerRunnable2();
		
		SellerRunnable3 r = new SellerRunnable3();
		
		Thread s1 = new Thread(r);
		s1.setName("张三");
		Thread s2 = new Thread(r);
		s2.setName("李四");
		Thread s3 = new Thread(r);
		s3.setName("王五");
		
		
		s1.start();
		s2.start();
		s3.start();
		
	}
}
